/**
 * 
 * @authors Your Name (you@example.org)
 * @date    2018-03-16 10:15:07
 * @version $Id$
 */
/*
获取用户名和密码，然后当点击login键时显示用户名和密码
*/
$(document).ready(function(){
    alert("good");
    $("#login").click(function(){
        var user = $("#username").val();
        var pwd = $("#password").val();
        //alert("用户名: "+user+"\n密码: "+pwd);
        var pd = {"username":user, "password":pwd};
        $.ajax({
        	type:"post",
        	url:"/",
        	data:pd,
        	cache:false,
        	success:function(data) {
        		alert(data);
        	},
        	error:function(){
        		alert("error!!");
        	},
        });
    });
});